$(function () {
    getoperation_order();
    init();
})

function init() {
    $(".check-btn").on("click",function(){
        $(this).parent("li").find("div").each(function(){
            $(this).css("display","block");
        })
        $(this).parent("li").siblings("li").each(function(){
            $(this).find("div").each(function(){
                $(this).css("display","none");
            })
        })
    })
    $(".yesBtn").on("click",function(){
        $(this).parent("div").css("display","none");
        $(this).parent("div").prev().css("display","none");
    })

}


/*
 * @description : 获取订单操作
 * @params:
 * @author : peng huaneng
 * @date : 2018/1/18 10:38
 */
function getoperation_order() {
    $('#operation_order_table').bootstrapTableEx({
        // url : '../../sys/user/list?_' + $.now(),
        height: $(window).height() - 54,
        queryParams: function (params) {
            return params;
        },
        columns: [{
            checkbox: true
        }, {
            field: 'id',
            title: '商品ID'

        }, {
            field: 'num',
            title: '订单编号<br>Order Number'
        }, {
            field: 'name',
            title: '商品名<br>Product name'
        }, {
            field: 'price',
            title: '价格<br>Price'
        }, {
            field: 'consigneeName',
            title: '收货人姓名<br>Consignee name'
        }, {
            field: 'phone',
            title: '联系电话<br>contact number'
        }, {
            field: 'status',
            title: '订单状态<br>Order Status'
        }],
        data: [{
            "id": 1,
            "name": "牛肉",
            "price": 1.00,
            "num": 11,
            "consigneeName": "小张",
            "phone": "18256899568",
            "status": "完成"
        }]
    });
}
var vm = new Vue({
    el:"#myTabContent",
    data:{
        categoryData:[
            {"id":1,"name":"类别选择","name_e":"leibiexuanze"},{"id":2,"name":"类别选择","name_e":"leibiexuanze"},{"id":3,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":4,"name":"类别选择","name_e":"leibiexuanze"},{"id":5,"name":"类别选择","name_e":"leibiexuanze"},{"id":6,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":7,"name":"类别选择","name_e":"leibiexuanze"},{"id":8,"name":"类别选择","name_e":"leibiexuanze"},{"id":9,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":10,"name":"类别选择","name_e":"leibiexuanze"},{"id":11,"name":"类别选择","name_e":"leibiexuanze"},{"id":12,"name":"类别选择","name_e":"leibiexuanze"}
        ],
        typeData:[
            {"id":1,"name":"种类选择","name_e":"leibiexuanze"},{"id":2,"name":"种类选择","name_e":"leibiexuanze"},{"id":3,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":4,"name":"种类选择","name_e":"leibiexuanze"},{"id":5,"name":"种类选择","name_e":"leibiexuanze"},{"id":6,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":7,"name":"种类选择","name_e":"leibiexuanze"},{"id":8,"name":"种类选择","name_e":"leibiexuanze"},{"id":9,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":10,"name":"种类选择","name_e":"leibiexuanze"},{"id":11,"name":"种类选择","name_e":"leibiexuanze"},{"id":12,"name":"种类选择","name_e":"leibiexuanze"}
        ],
        brandData:[
            {"id":1,"name":"品牌选择","name_e":"leibiexuanze"},{"id":2,"name":"品牌选择","name_e":"leibiexuanze"},{"id":3,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":4,"name":"品牌选择","name_e":"leibiexuanze"},{"id":5,"name":"品牌选择","name_e":"leibiexuanze"},{"id":6,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":7,"name":"品牌选择","name_e":"leibiexuanze"},{"id":8,"name":"品牌选择","name_e":"leibiexuanze"},{"id":9,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":10,"name":"品牌选择","name_e":"leibiexuanze"},{"id":11,"name":"品牌选择","name_e":"leibiexuanze"},{"id":12,"name":"品牌选择","name_e":"leibiexuanze"}
        ]
    },
    methods:{

    }
});